package com.ty.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ty.entity.Carts;
import com.ty.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.req.OrderReq;
import com.ty.resp.CommonResp;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author txy
 * @since 2024-03-02
 */
public interface IOrdersService extends IService<Orders> {

    CommonResp getOrders(Page page, String name, String userId, Integer status);

    CommonResp createOrder(OrderReq orderReq);

    CommonResp updateOrder(String orderId, Integer paymentType, String userId, Integer status);

    CommonResp deleteOrder(String orderId, String userId);

    CommonResp shipmentsOrder(Orders order);
}
